Syntax - Module
A module will be equipped with
Module(name , HELP(fileName)) : baseModule Synopsis("...", "...") Dictionary(T("...", "..."), T("...", "..."))
defined.
The module is identified by a unique name. The name of an HTML file can be linked to the module. If a module is derived from another, already agreed module, the name of the basic module is given after a :. This is followed optionally by the synopsis describing the module and the dictionary containing keywords for the module.
An action list can follow immediately, but with slightly restricted syntax:
ActionList |
|
ActionBody | ::= ActionBody ActionElem | ActionElem |
ActionElem | ::= Action | Definition |
Action | ::= Event: Statements |
Event | ::= INITIALIZE | Message |
Statements | ::= Statements SingleStmt | Statements, SingleStmt | SingleStmt |
Definition | ::= VariableDefinition | StatementDefinition | StatementDeclaration | MessageDeclaration |
i.e. executable instructions can only be associated with INITIALIZE or a message.
The syntax for defining an external module:
For derived modules the base module can be specified:
When defining a base module externally, the event list is missing:
No action list may be specified here!